public struct MGameScoreSync
{
	public int p1Points;

	public int p1TotalPoints;

	public int p2Points;

	public int p2TotalPoints;

	public int p1Games;

	public int p2Games;

	public bool isSetWon;

	public int playerTagThatWonPoint;

	public int servingPlayerTag;

	public bool isTimeOut;

	public bool isDisconnect;

	public void Send(GGNetwork network)
	{
		network.BeginWrite(9);
		network.AddInt(p1Points);
		network.AddInt(p2Points);
		network.AddInt(p1TotalPoints);
		network.AddInt(p2TotalPoints);
		network.AddInt(p1Games);
		network.AddInt(p2Games);
		network.AddBool(isSetWon);
		network.AddInt(playerTagThatWonPoint);
		network.AddInt(servingPlayerTag);
		network.AddBool(isTimeOut);
		network.AddBool(isDisconnect);
		network.EndWrite();
		network.Send(true, 0);
	}

	public void Deserialize(GGNetwork network)
	{
		p1Points = network.GetInt();
		p2Points = network.GetInt();
		p1TotalPoints = network.GetInt();
		p2TotalPoints = network.GetInt();
		p1Games = network.GetInt();
		p2Games = network.GetInt();
		isSetWon = network.GetBool();
		playerTagThatWonPoint = network.GetInt();
		servingPlayerTag = network.GetInt();
		isTimeOut = network.GetBool();
		isDisconnect = network.GetBool();
	}
}
